package com.atguigu.mybatis.dao;

import com.atguigu.mybatis.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author : zzf
 * @date : 2020/12/28
 */


public interface EmployeeMapper {
    Employee selectEmployee(Integer empId);

    int insertEmployee(Employee employee);

    int deleteEmployee(Integer empId);

    int updateEmployee(Employee employee);

    Employee selectEmployeeByName(@Param("empName") String empName);

    Map<String, Object> selectEmpNameAndMaxSalary();

    int insertEmployeeTwo(Employee employee);
}
